clear

import delimited "lab_6rounds.csv"

xtset subject_id round

replace vote_choice = vote_choice + 1

xtmlogit vote_choice partner_transfer role_first_half, base(1)
estimates store model1

xtmlogit vote_choice partner_transfer role_first_half age female christian muslim, base(1)
estimates store model2

xtmlogit vote_choice partner_transfer role_first_half age female christian muslim beautytask_choice crt_total_correct altruism positive_reciprocity, base(1)
estimates store model3

esttab model1 model2 model3 using "table_Appendix_E_6.tex", replace se b(%9.3f) cons r2 starlevels(* 0.05 ** 0.01) scalars(ll) sfmt(%9.3f %9.3f %9.3f) nodepvars label addnote("")
